Ext.define('MyApp.view.role.UserGridView', {
			extend : 'MyApp.view.ux.BaseWindow',
			alias : 'widget.usergridview',
			layout : 'fit',
			width: 700,
			height: 300,
			initComponent : function() {
				Ext.apply(this, {
					items:[{
						xtype:'grid',
						forceFit:true ,//自动填满表格 
					    autoScroll : true,
					    autoHeight: true,
					    selType: 'checkboxmodel',
						columns:[
							{text:'用户名称',dataIndex:'userName', align:'center'},
							{text:'登陆ID',dataIndex:'loginID',align:'center'},
							{text:'是否活动',dataIndex:'active',align:'center',renderer:Ext.myUtil.YorNFormat},
							{text:'创建时间',dataIndex:'createDate',align:'center',renderer: Ext.util.Format.dateRenderer('Y-m-d')}
						]
					}],
					buttons : [{
						text : '选择用户',
						itemId : 'searchuser',
						glyph : 0xf002
					}, {
						text : '删除选中',
						itemId : 'deleteuser',
						disabled:true,
						glyph : 0xf1f8
					}, {
						text : '关闭',
						itemId : 'cancel',
						glyph : 0xf00d,
						handler:function(btn){
							btn.up('window').close();
						}
					}]
				});
				this.callParent(arguments);
			}
});